// @ts-ignore
/* eslint-disable */
import request from "@/libs/request";

/** chat POST /api/dummyinterview/chat */
export async function chatUsingPost(
  body: API.InterviewRequest,
  options?: { [key: string]: any }
) {
  return request<string>("/api/dummyinterview/chat", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** chatMuiti POST /api/dummyinterview/chatByMuiti */
export async function chatMuitiUsingPost(
  body: API.InterviewMultiRequest,
  options?: { [key: string]: any }
) {
  return request<string>("/api/dummyinterview/chatByMuiti", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** chatMuitiStream POST /api/dummyinterview/chatByMuitiStream */
export async function chatMuitiStreamUsingPost(
  body: API.InterviewMultiRequest,
  options?: { [key: string]: any }
) {
  return request<API.FluxServerSentEventString_>(
    "/api/dummyinterview/chatByMuitiStream",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** chatStream POST /api/dummyinterview/chatStream */
export async function chatStreamUsingPost(
  body: API.InterviewRequest,
  options?: { [key: string]: any }
) {
  return request<API.FluxServerSentEventString_>(
    "/api/dummyinterview/chatStream",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
